package com.lggry.array.branch;

public class DoWhileDemo1 {
    public static void main(String[] args) {
        //搞清楚do-while循环的写法，并理解其特点
    }
    //使用do-while循环控制打印三行HelloWorld
    public static void printHelloWorld(){
        int i = 0;
        //特点：先执行后判断
        do{
            System.out.println("Hello World");
            i++;
        }while(i<3);
    }
}
